package com.aixx.springcloud.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @author shkstart
 * @create 2021-01-28 10:58
 */
@RestController
public class OrderController {

    public static final String INVOKE_URL ="http://consul-provider-service";

    @Resource
    private RestTemplate restTemplate;

    @GetMapping("customer/payment/consul")
    public String paymentiNfo(){
        return restTemplate.getForObject(INVOKE_URL+"/payment/consul/",String.class);
    }


}
